import { axios } from '@/utils/request'

const api = {
  adoptCatList: '/adopt/adopt/adopt-cat-list',
  adoptCatChangeStatus: '/adopt/adopt/adopt-cat-status',
  adoptCatDel: '/adopt/adopt/adopt-cat-del',
  adoptCatEdit: '/adopt/adopt/adopt-cat-edit',
  adoptCat: '/adopt/adopt/adopt-cat',
}

export default api

export function getAdoptCatList(parameter) {
  return axios({
    url: api.adoptCatList,
    method: 'get',
    params: parameter
  })
}
export function adoptCatChangeStatus(parameter) {
  return axios({
    url: api.adoptCatChangeStatus,
    method: 'post',
    data: parameter
  })
}

export function adoptCatDelItem(parameter) {
  return axios({
    url: api.adoptCatDel,
    method: 'post',
    data: parameter
  })
}

export function adoptCatEditItem(parameter) {
  return axios({
    url: api.adoptCatEdit,
    method: 'post',
    data: parameter
  })
}

export function adoptCat(parameter) {
  return axios({
    url: api.adoptCat,
    method: 'get',
    params: parameter
  })
}
